import { compelrToFunction } from "./compile/index";
import { initGlobApi } from "./global-api/index";
import { initMixin } from "./init";
import { stateMixin } from "./initState";
import { lifecycleMixin } from "./lifecycle";
import { renderMixin } from "./vnode/index";
import { createELm, patch } from "./vnode/patch";

function Vue(options) {
  this._init(options);
}
initMixin(Vue); //初始化数据 挂载放法 变成reder函数之类的
renderMixin(Vue); //添加vm._render 将reder函数变成vnode
lifecycleMixin(Vue); //添加生命周期的初始化
stateMixin(Vue); //添加 $nextTick
initGlobApi(Vue);
export default Vue;
